import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useSalespersonStore = defineStore(
  'salesperson',
  () => {
    const token = ref('')

    const setToken = (itoken) => {
      token.value = itoken
    }

    const reset = () => {
      token.value = ''
    }

    return {
      token,
      setToken,
      reset
    }
  },
  {
    persist: true
  }
)
